package com.fruit.service.order;

import java.util.List;
import java.util.Map;

import com.fruit.pojo.order.DSHOrder;
import com.fruit.pojo.order.Order;
import com.fruit.pojo.pay.PayInfo;

/**
 * 订单接口类
 *
 * @author shibeilei
 * @version 2017.12.01 16:35
 *
 */
public interface OrderHandel {

	/**
	 * 取消订单
	 * @param tradeId tradeId
	 * @param order order
	 * @param times times
	 * @return 返回取消订单结果
	 * @author shibeilei
	 * @version 2017.12.01 16:35
	 */
	 Map<String, Object> autoCancelOrder(String tradeId, DSHOrder order, int times);
	
	/**
	 * 异步取消订单
	 * @param orderList orderList
	 * @param pi pi
	 * @author admin
	 * @version 2017
	 */
	 void runSaveAutoCancelOrder(List<Order> orderList, PayInfo pi);
	
}
